<?php

use Illuminate\Database\Seeder;

class MenusTableSeeder extends Seeder
{

    /**
     * Auto generated seed file
     *
     * @return void
     */
    public function run()
    {
        

        \DB::table('menus')->delete();
        
        \DB::table('menus')->insert(array (
            0 => 
            array (
                'id' => 1,
                'pid' => 0,
                'name' => '首页',
                'icon' => 'fa fa-dashboard',
                'slug' => 'homecontroller.index',
                'url' => 'admin',
                'active' => 'admin',
                'description' => '后台首页',
                'sort' => 0,
                'created_at' => '2017-11-17 18:57:53',
                'updated_at' => '2017-11-17 18:57:53',
            ),
            1 => 
            array (
                'id' => 2,
                'pid' => 0,
                'name' => '系统管理',
                'icon' => 'fa fa-cog',
                'slug' => 'system.manage',
                'url' => '',
                'active' => 'admin/role*,admin/permission*,admin/user*,admin/menu*',
                'description' => '系统功能管理',
                'sort' => 0,
                'created_at' => '2017-11-17 18:57:53',
                'updated_at' => '2017-11-17 18:57:53',
            ),
            2 => 
            array (
                'id' => 3,
                'pid' => 2,
                'name' => '后台用户管理',
                'icon' => 'fa fa-users',
                'slug' => 'usercontroller.index',
                'url' => 'admin/user',
                'active' => 'admin/user*',
                'description' => '显示用户管理',
                'sort' => 0,
                'created_at' => '2017-11-17 18:57:53',
                'updated_at' => '2017-11-17 18:57:53',
            ),
            3 => 
            array (
                'id' => 4,
                'pid' => 2,
                'name' => '角色管理',
                'icon' => 'fa fa-user-plus',
                'slug' => 'rolecontroller.index',
                'url' => 'admin/role',
                'active' => 'admin/role*',
                'description' => '显示角色管理',
                'sort' => 0,
                'created_at' => '2017-11-17 18:57:53',
                'updated_at' => '2017-11-17 18:57:53',
            ),
            4 => 
            array (
                'id' => 5,
                'pid' => 2,
                'name' => '权限管理',
                'icon' => 'fa fa-paper-plane',
                'slug' => 'permissioncontroller.index',
                'url' => 'admin/permission',
                'active' => 'admin/permission*',
                'description' => '显示权限管理',
                'sort' => 0,
                'created_at' => '2017-11-17 18:57:53',
                'updated_at' => '2017-11-17 18:57:53',
            ),
            5 => 
            array (
                'id' => 6,
                'pid' => 2,
                'name' => '菜单管理',
                'icon' => 'fa fa-navicon',
                'slug' => 'menucontroller.index',
                'url' => 'admin/menu',
                'active' => 'admin/menu*',
                'description' => '显示菜单管理',
                'sort' => 0,
                'created_at' => '2017-11-17 18:57:53',
                'updated_at' => '2017-11-17 18:57:53',
            ),
        ));
        
        
    }
}